/**
 * 漆水河 脚手架基础公开课
 * 2022/8/13 --- 2022/12/13
 * 有疑问可加QQ群: 809126489，后续会持续输出与大家一起成长
 */
package com.qishuihe.baseinterface.utils;

import com.qishuihe.baseinterface.constant.CommonConstant;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class WebResponseUtils {

    public  static  void renderResponse(HttpServletResponse httpServletResponse, String message) throws IOException {
        httpServletResponse.setStatus(CommonConstant.STATUS_SUCCESS);
        httpServletResponse.setContentType("application/json");
        httpServletResponse.setCharacterEncoding("utf-8");
        httpServletResponse.getWriter().print(message);
    }
}
